package com.example.easydownloadback.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.easydownloadback.domin.FileType;
import com.example.easydownloadback.domin.ResponseResult;

import java.util.List;
import java.util.Map;

public interface FileTypeService {
    ResponseResult<List<FileType>> listFileType();

    ResponseResult<List<Map<String, String>>> listSimpleFileType();

    String getIdByTypeName (String name);

    String getTypeNameById (String id);

    ResponseResult<List<String>> getFileTypeListByFileId(String fileId);

    ResponseResult addFileType(FileType fileType);

    boolean isFileTypeByTypeName(String typeName);

    ResponseResult<IPage<FileType>> listPageFileType(Integer pageNum, Integer pageSize, String selectValue);

    ResponseResult deleteFileTypeById(String id);
}
